package com.schpro.webexperiment.model;

import com.schpro.webexperiment.dataobject.WxType;
import java.util.List;
import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.BeanUtils;

/**
 * TODO
 *
 * @author lss
 * @date 2019-02-27, Wed
 */
@Getter
@Setter
public class Type extends BaseModel {

  /**
   * 描述
   */
  private String description;

  /**
   * 父id
   */
  private String refId;

  /**
   * for example 社会工程-敏感信息搜集
   */
  private List<Experiment> children;

  public Type(WxType type) {
    this.setLevel(BaseModel.LEVEL_TYPE);
    BeanUtils.copyProperties(type, this);
  }

  public Type() {
    this.setLevel(BaseModel.LEVEL_TYPE);
  }
}
